using System.ComponentModel.DataAnnotations;

namespace AiQiuQuan.Sport.Model.Models
{
    /// <summary>
    /// 平台用户登录dto
    /// </summary>
    public class FrameworkUsersLoginDto
    {
        /// <summary>
        /// 账号
        /// </summary>
        [Required(AllowEmptyStrings = false, ErrorMessage = "必填")]
        [StringLength(50, ErrorMessage = "不能超过50个字符")]
        public string Code { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [Required(AllowEmptyStrings = false, ErrorMessage = "必填")]
        [StringLength(32, ErrorMessage = "不能超过32个字符")]
        public string Password { get; set; }
    }
}
